﻿using UserRepositorys.Intface;
using UserRepositorys.Impl;

namespace UserLicense.Extensions
{
    public static class RepositoryCommon
    {
        public static void RegisterServices(this IServiceCollection Services)
        {
            //用户仓储
            Services.AddScoped<IUserRepository, UserRepository>();
            //角色仓储
            Services.AddScoped<IRoleRepository, RoleRepository>();
            Services.AddScoped<ITiesRepository, TiesRepository>();
            Services.AddScoped<IDeptRepository, DeptRepository>();
            Services.AddScoped<IMenuRepository, MenuRepository>();
            Services.AddScoped<IAccountRepository, AccountRepository>();
            Services.AddScoped<IAccountRoleRepository, AccountRoleRepository>();
        }

    }
}
